<?php

chdir(dirname(__FILE__));

/**
 * Define extension: we are using all .PHP 
 */
define('EXT', '.php');

/**
 * Vars for Apps, System and lib directories. 
 */
$appsDir = 'Apps';
$sysDir = 'System';
$libDir = 'lib';

/**
 * Define directories paths 
 */
define('DS', '/');
define('BASEPATH', str_replace("\\", "/", dirname(__FILE__).DS));
define('APPSPATH', BASEPATH.$appsDir.DS);
define('SYSPATH', BASEPATH.$sysDir.DS);
define('LIBPATH', SYSPATH.$libDir.DS);

/**
 * Define folder names
 */
define('APPS', $appsDir.DS);
define('SYS', $sysDir.DS);
define('LIB', $libDir.DS);

require_once SYSPATH.'Bootstrap'.EXT;